package com.biz;

import com.dao.AddressMapper;
import com.entity.Address;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IAddrressBizImp implements IAddressBiz {

    @Autowired
    private AddressMapper dao;

    public AddressMapper getDao() {
        return dao;
    }

    public void setDao(AddressMapper dao) {
        this.dao = dao;
    }

    @Override
    public List<Address> getAll() {
        return dao.getAll();
    }

    @Override
    public void add_address(Address aa) {
        dao.add_address(aa);
    }

    @Override
    public void del_address(int id) {
        dao.del_address(id);
    }

    @Override
    public Address getById(int id) {
        return dao.getById(id);
    }

    @Override
    public void mod_address(Address aa) {
        dao.mod_address(aa);
    }

    @Override
    public List<Address> getListByUid(Integer uid) {
        return dao.getListByUid(uid);
    }
}
